package com.ctjsoft.datacollection.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
public class PageController {

    @GetMapping("{page}.html")
    public String index(@PathVariable("page") String page) {
        return page;
    }

    @GetMapping("/{path}/{page}.html")
    public String page(@PathVariable("path") String path, @PathVariable("page") String page) {
        return path + '/' + page;
    }
}
